﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScriptEditor.Commands
{
    class Command_AddToMask : Command
    {
        public string resourceName{
            get
            {
                return Value1;
            }
            set
            {
                Value1 = value;
            }
        }
        public string maskName
        {
            get
            {
                return Value2;
            }
            set
            {
                Value2 = value;
            }
        }
        public Command_AddToMask()
        {
            CommandType = COMMANDTYPE.AddToMask;
            resourceName = "请输入资源名";
            maskName = "请输入遮罩层名称";
            Wait = true;
        }
        public Command_AddToMask(string ResourceName, string MaskName)
        {
            CommandType = COMMANDTYPE.AddToMask;
            resourceName = ResourceName;
            maskName = MaskName;
            Wait = true;
        }
        public override string ToString()
        {
            return CommandType.ToString() +":\n" + "添加遮罩层" + ":" + maskName + "," + "添加资源:" + resourceName;
        }
    }
}
